home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_kdelibs.idb / usr / freeware / kde / include / kfiledetaillist.h.z / kfiledetaillist.h
Encoding:
C/C++ Source or Header  |  1999-01-26  |  2.0 KB  |  62 lines

  1. // -*- c++ -*-
  2. /* This file is part of the KDE libraries
  3.     Copyright (C) 1997, 1998 Richard Moore <rich@kde.org>
  4.                   1998 Stephan Kulow <coolo@kde.org>
  5.                   1998 Daniel Grana <grana@ie.iwi.unibe.ch>
  6.     
  7.     This library is free software; you can redistribute it and/or
  8.     modify it under the terms of the GNU Library General Public
  9.     License as published by the Free Software Foundation; either
  10.     version 2 of the License, or (at your option) any later version.
  11.  
  12.     This library is distributed in the hope that it will be useful,
  13.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  14.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  15.     Library General Public License for more details.
  16.  
  17.     You should have received a copy of the GNU Library General Public License
  18.     along with this library; see the file COPYING.LIB.  If not, write to
  19.     the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  20.     Boston, MA 02111-1307, USA.
  21. */
  22.  
  23. #ifndef KFILEDETAILLIST_H
  24. #define KFILEDETAILLIST_H
  25.  
  26. #include <ktablistbox.h>
  27. #include "kfileinfocontents.h"
  28. #include "kfileinfo.h"
  29. #include "kdir.h"
  30.  
  31. class KFileDetailList : protected KTabListBox, public KFileInfoContents {
  32.     Q_OBJECT
  33.     
  34. public:
  35.     /**
  36.      * Create a file info list widget.
  37.      */
  38.     KFileDetailList(bool s, QDir::SortSpec sorting, QWidget *parent= 0, const char *name= 0);
  39.     virtual ~KFileDetailList();
  40.     
  41.     virtual QWidget *widget() { return this; }
  42.     virtual void setAutoUpdate(bool);
  43.     virtual void clearView();
  44.     virtual void repaint(bool f = true);
  45.     
  46.     virtual bool acceptsFiles() { return true; }
  47.     virtual bool acceptsDirs() { return true; }
  48.  
  49. protected:
  50.     virtual void highlightItem(unsigned int item);
  51.     virtual bool insertItem(const KFileInfo *i, int index);
  52.     virtual void keyPressEvent( QKeyEvent *e);
  53.     virtual void focusInEvent ( QFocusEvent *e );
  54.  
  55. protected slots:
  56.     void reorderFiles(int inColumn);
  57.     void selected(int);
  58.     void highlighted(int);
  59. };
  60.  
  61. #endif // KFILEDETAILLIST_H
  62.